//
//  WifiSpeedController.m
//  phoneTool
//
//  Created by HappyMilk 02 on 2017/8/2.
//  Copyright © 2017年 tomi. All rights reserved.
//

#import "WifiSpeedController.h"
#import "LoginHeader.h"

@interface WifiSpeedController ()

@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation WifiSpeedController

- (IBAction)popvc:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.speedtest.cn/SpeedTest/index.plugin.min.php"]]];
    SHOW_HUD(IS_CHINESE?@"加载中...":@"loading...");
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    [webView stringByEvaluatingJavaScriptFromString:@"$(\".more-server\").remove();$(\".version\").remove();$(\".share\").remove();$(\"#mybook\").remove();"];
    HIDE_HUD;
    //$(".head").remove() $(".yj").remove() $(".fl").remove() $(".days7").remove() $(".ad").remove() $(".news").remove() $("#Zip").remove() $(".life").remove() $(".zs").remove() $(".footer").remove()
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
